package cate.common.table.d;


import cate.common.table.common.ParamSheet;
import cp.solution.util.str.Str;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.List;

@NoteClass(value = "无尽轮回")
public class GDEndless {

    @NoteField(value = "初始关卡数")
    public static final int COMBAT_NUM_MIN = 1;

    @NoteField(value = "每日挑战关卡差值")
    public static int START_OFFSET;

    @NoteField(value = "每五关就要选一次buff")
    public static int CHOOSE_BUFF_GAP;

    @NoteField(value = "你的好友援助的英雄战力是你最强英雄战力的多少倍的时候就不能支援你了")
    public static double AID_POWER_SCALE = 1.2;

    @NoteField(value = "选Buff后的一场战斗才有效")
    public static List<Integer> onlyOneSkills;

    public enum ChallengeResult {
        DEAD,
        QUIT,
        WIN_MAX,
        DAY_SPAN,
    }

    /** 读取excel中配置的参数 */
    public static void initialize(ParamSheet paramSheet) {
        START_OFFSET = GDParamTool.getInt(paramSheet,200208, 10);
        CHOOSE_BUFF_GAP = GDParamTool.getInt(paramSheet, 200209, 5);
        String onlyOneSkillsStr = GDParamTool.getString(paramSheet, 200210, "30101");
        onlyOneSkills = Str.str2IntList(onlyOneSkillsStr, "#");
    }
}
